<template>
  <div>
    <button @click="status = !status">隐藏/切换</button>
    <Test v-if="status"></Test>
  </div>
</template>

<script>
import Test from './components/Test.vue'
import {ref } from "vue";

export default {
  name: 'App',
  components: {
    Test
  },
  setup() {
     let status =  ref(true)

     return {
      status
     }
  }
}
</script>

<style>
</style>
